package com.guowei.jiecloudbackstage.roommessage.controller;


import com.guowei.jiecloudbackstage.common.api.vo.Result;
import com.guowei.jiecloudbackstage.roommessage.service.IRoommessageService;
import com.guowei.jiecloudbackstage.staff.entity.Staff;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author ym
 * @since 2021-07-13
 */
@RestController
@Api(tags = "roomMessage房间信息对接房态图 接口")
@RequestMapping("/roommessage/roommessage")
public class RoommessageController {

    @Autowired
    private IRoommessageService iRoommessageService;

    @RequestMapping("/api/selectAll")
    @ResponseBody
    public Result selectAll() {
        return iRoommessageService.selectAll();
    }

    @PostMapping("/api/roomAbleCount")
    @ResponseBody
    public Result roomAbleCount() {
        return iRoommessageService.roomAbleCount();
    }

    @PostMapping("/api/roomUnAbleCount")
    @ResponseBody
    public Result roomUnAbleCount() {
        return iRoommessageService.roomUnAbleCount();
    }

    @PostMapping("/api/roomCount")
    @ResponseBody
    public Result roomCount() {
        return iRoommessageService.roomCount();
    }

    @PostMapping("/api/roomClear")
    @ResponseBody
    public Result roomClear() {
        return iRoommessageService.roomClear();
    }

    @PostMapping("/api/roomDirty")
    @ResponseBody
    public Result roomDirty() {
        return iRoommessageService.roomDirty();
    }

}
